import { HttpException, HttpStatus } from '@nestjs/common';

export class ForbiddenException extends HttpException {
  constructor() {
    super('Forbidden', HttpStatus.FORBIDDEN);
  }
}

export class NotFoundException extends HttpException {
  constructor() {
    super(
      {
        message: 'not found',
        tip: '请保证查询条件正确',
      },
      HttpStatus.NOT_FOUND,
    );
  }
}

export default {
  ForbiddenException,
  NotFoundException,
};
